package net.tycmc.cty.ctyms.timejob.iems.job;

import java.util.Map;
import net.tycmc.cty.ctyms.timejob.common.DateControl;
import net.tycmc.cty.ctyms.timejob.iems.service.DrivingBehavior2Service;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class DrivingBehavior2Job extends QuartzJobBean {

	/**
	 * 车辆档位及车速统计作业
	 */
	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		
		String start = DateControl.getDateTime(0);
		System.out.println("-----车辆档位及车速统计作业开始------开始时间："+start);
		
		Map<?, ?> datamap = arg0.getJobDetail().getJobDataMap();
		DrivingBehavior2Service  drivingBehavior2Service = (DrivingBehavior2Service)datamap.get("drivingBehavior2Service");
		drivingBehavior2Service.execStart(null,null);
		System.out.println("-----车辆档位及车速统计作业结束------执行时间："+DateControl.getMiaoShu(start,DateControl.getDateTime(0)));
	}
}
